import { createStore } from 'vuex';
import expose from './expose';
import attack from './attack';
import detail from './detail';
import _enum from './enum';
import api from './api';

const store = createStore({
  state() {
    return {
      token: '',
      prefix: '/exposure-path',
      routeService: '/airadar-exposed-service',
      routeServiceV2: '/airadar-exposed-v2-service',
      keywordService: '/airadar-keywords-service',
      strategyService: '/airadar-workflow-service',
      reportService: '/airadar-report-service',
      systemService: '/airadar-system-manage-service',
      resourceService: '/airadar-resource-center-service',
    };
  },
  mutations: {
    // 状态更改函数
  },
  actions: {
    // 异步操作
  },
  modules: {
    // 模块化状态管理
    expose,
    detail,
    attack,
    enum: _enum,
    api,
  },
});

export default store;
